import page404 from "./component/_page404.vue"

// 考勤总览 attendanceList
import attendanceList from "./component/attendanceList.vue"

// 加班详情
import overtime from "./component/overtimeList.vue"

// 调休详情
import rest from "./component/rest.vue"


// 个人调休时间
import restdetails from "./component/restdetails.vue"

// 个人加班详情 overtimedetails
import overtimedetails from "./component/overtimeDetails.vue"

// 调休余额 remainTime
import remaintime from "./component/remainTime.vue"

// 打卡地点 place
import place from "./component/place.vue"

Vue.use(VueRouter);
const routes = [{
        path: "/attendanceList",
        component: attendanceList
    },
    {
        path: "/overtime",
        component: overtime
    },
    {
        path: "/rest",
        component: rest
    },
    {
        path: "/restdetails",
        component: restdetails
    },
    {
        path: "/overtimedetails",
        component: overtimedetails
    },
    {
        path: "/remaintime",
        component: remaintime

    },
    {
        path: '/',
        redirect: '/attendanceList'
    },
    {
        path: '/place',
        // redirect: '/'
        component: place
    },
    {
        path: '*',
        component: page404
    }
]
var router = new VueRouter({
    // mode: 'history',
    routes
});
// 实例化vue



import AttendanceRoot from "./More.vue";
var app = new Vue({
    el: '#app',
    template: '<AttendanceRoot/>',
    router,
    components: { AttendanceRoot },
})